<!DOCTYPE HTML>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
    <div class="container-div">
		<!--<div class="btn-group hidden-xs" id="toolbar" role="group">-->
			<!--<a class="btn btn-outline btn-danger btn-rounded" onclick="$.operate.removeAll()" shiro:hasPermission="module:ossConfigLog:remove">-->
				<!--<i class="fa fa-trash-o"></i> 删除-->
			<!--</a>-->
		<!--</div>-->
			
		<div class="col-sm-12 select-table table-striped">
			<table id="bootstrap-table" data-mobile-responsive="true" style="white-space:nowrap"></table>
		</div>
    </div>
    <div th:include="include :: footer"></div>
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('module:ossConfigLog:list')}]];
        var removeFlag = [[${@permission.hasPermi('module:ossConfigLog:remove')}]];
        var prefix = ctx + "module/ossConfigLog"

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                modalName: "阿里云OSS资源更新日志",
                columns: [{
		            checkbox: true
		        },
				{
					field : 'ossConfigLogId', 
					title : '主键' 
				},
				{
					field : 'ossConfigId', 
					title : '阿里云OSS资源ID' 
				},
                {
                    field : 'createBy',
                    title : '更新者'
                },
				{
					field : 'createTime',
					title : '更新时间'
				},
				// {
				// 	field : 'fileContent',
				// 	title : '内容'
				// },
		        {
		            title: '操作',
		            align: 'center',
		            formatter: function(value, row, index) {
		            	var actions = [];
		            	actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="#" onclick="editContent(\'' + row.ossConfigLogId + '\')"><i class="fa fa-edit"></i>查看</a> ');
                        // actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="#" onclick="$.operate.remove(\'' + row.ossConfigLogId + '\')"><i class="fa fa-remove"></i>删除</a>');
						return actions.join('');
		            }
		        }]
            };
            $.table.init(options);
        });
		function editContent(id) {
			var url = prefix + "/edit/"+id;
			$.modal.openFull("内容查看" , url,600,600);
		}
    </script>
</body>
</html>